package com.powersystem.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author linrongji
 * @since 2019-11-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PS_FUNCTION")
public class PsFunction extends Model<PsFunction> {

    private static final long serialVersionUID=1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @TableField("FUNCTIONCODE")
    private String functioncode;

    @TableField("FUNCTIONNAME")
    private String functionname;

    @TableField("CREATIONTIME")
    private LocalDateTime creationtime;

    @TableField("CREATEDBY")
    private String createdby;

    @TableField("LASTUPDATETIME")
    private LocalDateTime lastupdatetime;

    @TableField("FUNCURL")
    private String funcurl;

    @TableField("ISSTART")
    private Integer isstart;

    @TableField("PARENTID")
    private Integer parentid;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
